package stu.mvc;

import stu.core.Autowired;
import stu.core.Controller;
import stu.core.RequestMapping;

@Controller
@RequestMapping("/mvc")
public class MvcController {

	@Autowired
	private MvcService mvcService;

	@RequestMapping("/login")
	private String login(String username, String password) {
		boolean falg = mvcService.login(username, password);
		if(falg){
			return "/WEB-INF/classes/stu/mvc/view/success";
		}else{
			return "view/shibai";
		}
	}
}
